package com.rjwh.dingdong.client.bean.localbean;

import com.rjwh.dingdong.client.download.DownloadTask;

import java.io.Serializable;

public class DownloadInfo implements Serializable {

    private int id;
    private int gameId;
    //1绘本 2是游戏 3.绘本资源包
    private int type;
    private String gamePic;
    private String gameName;
    private long totalLength = 0;
    private long downloadLength = 0;
    private float progress = 0;
    private int downloadState = 0;
    private String url;
    private String version;
//	private String path;
    private DownloadTask task;                  //执行当前下载的任务
    private String targetPath;    //保存文件地址
     private String targetFolder;  //保存文件夹

    private long networkSpeed;

    public String getTargetFolder() {
        return targetFolder;
    }

    public void setTargetFolder(String targetFolder) {
        this.targetFolder = targetFolder;
    }

    private String fileName;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public int getGameId() {
        return gameId;
    }

    public void setGameId(int gameId) {
        this.gameId = gameId;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }



    public int getDownloadState() {
        return downloadState;
    }

    public void setDownloadState(int downloadState) {
        this.downloadState = downloadState;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


    public DownloadInfo() {
        super();
    }

    public float getProgress() {
        return progress;
    }

    public void setProgress(float progress) {
        this.progress = progress;
    }

    public String getGamePic() {
        return gamePic;
    }

    public void setGamePic(String gamePic) {
        this.gamePic = gamePic;
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public long getDownloadLength() {
        return downloadLength;
    }

    public void setDownloadLength(long downloadLength) {
        this.downloadLength = downloadLength;
    }

    public long getTotalLength() {
        return totalLength;
    }

    public void setTotalLength(long totalLength) {
        this.totalLength = totalLength;
    }

    public String getTargetPath() {
        return targetPath;
    }

    public DownloadTask getTask() {
        return task;
    }

    public void setTask(DownloadTask task) {
        this.task = task;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }

    public long getNetworkSpeed() {
        return networkSpeed;
    }

    public void setNetworkSpeed(long networkSpeed) {
        this.networkSpeed = networkSpeed;
    }




    //    public DownloadInfo(int gameId, String gameName, String gamePic, long countSize,
//                        long currentSize, int progress, int downloadState, String url) {
//        super();
//        this.gameId = gameId;
//        this.gameName = gameName;
//        this.gamePic = gamePic;
//        this.countSize = countSize;
//        this.currentSize = currentSize;
//        this.progress = progress;
//        this.downloadState = downloadState;
//        this.url = url;
//
//    }


}
